<?php
/* @var $this PostsController */
/* @var $model Posts */

$this->breadcrumbs=array(
	'内容管理'=>array('admin'),
	'发布',
);

$this->menu=array(
	array('label'=>'内容管理', 'url'=>array('admin', 'category_id' => $category->id)),
);
//注册JS，自动将标题变成合法的别名
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl.'/scripts/admin/global.js');
Yii::app()->clientScript->registerScript('editor', '
    $("#Posts_post_title").blur(function(){
        $("#Posts_post_alias").val(clearString($(this).val()));
    });
');
?>


<h1>[ 发布内容 ]</h1>

<?php echo $this->renderPartial('_form', array('model'=>$model, 'category' => $category)); ?>